//
//  BaseFunction.swift
//  B2BAutoziMall
//
//  Created by heew on 16/2/22.
//  Copyright © 2016年 qeegoo. All rights reserved.
//

import Foundation

    // 全局设置获取关联对象
    private var asskey:UInt8 = 0

    func Base_setUserInfo(obj_:NSObject,value:AnyObject) {
        obj_.setAssociatedObject(obj: value, key: &asskey)
    }
    func Base_getUserInfo(obj_:NSObject) -> AnyObject {
       return obj_.associatedObjectForKey(key: &asskey) ?? NSNull()
    }
//DEBUG打印
func APPLog<T>(message: T) {
    #if DEBUG
        print("\(message)")
    #endif
}
